//
//  KeChengXueShengView.h
//  SanYiTeaching
//
//  Created by 李文强 on 2019/4/17.
//  Copyright © 2019 SanYi. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "KeChengNextCell.h"
#import "SJXQHeaderTitleView.h"
#import "KeChengNextHeaderView.h"
#import "JiaoXueKeChengKeShiDetailModel.h"
#import "JiaoXueKeChengKeChengXueShengModel.h"
#import "XueShengXiangQingVC.h"
//#import "XueShengXiangQingVC.h"//班级学生详情页面
NS_ASSUME_NONNULL_BEGIN
/*
 课程学生
 */
@protocol KeChengXueShengViewDelegate <NSObject>

@required
- (void)addChildViewForDetail:(int)index;
@optional
- (void)addChildViewForDetailAndID:(NSString *)index;
@end

@interface KeChengXueShengView : UIView<UITableViewDelegate,UITableViewDataSource>
@property (nonatomic, assign) CGFloat mainw;
@property (nonatomic, strong) UITableView *tableList;
@property (nonatomic, strong) KeChengNextHeaderView *headerView;
@property (nonatomic, strong) SJXQHeaderTitleView *titleView;
@property (nonatomic, strong) XueShengXiangQingVC *xueShengDetailVC;
//@property (nonatomic, strong) XueShengXiangQingVC *xueShengDetailVC;
//班级ID
@property (nonatomic, strong) NSString *lessonId;
@property (nonatomic, strong) NSString *classID;
//课程详情Model
@property (nonatomic, strong) JiaoXueKeChengKeShiDetailModel *classDetailModel;
//课程学生的数组
@property (nonatomic, strong) NSMutableArray *dataArray;
@property (nonatomic, assign) id<KeChengXueShengViewDelegate>myDelagete;
- (instancetype)initWithClassID:(NSString *)classID andLessonID:(NSString *)lessonID WithFrame:(CGRect )rect;
@end

NS_ASSUME_NONNULL_END
